<?php 
	require_once '../App_Code/Manage.php'; 
	
	$Manager_Userid=$_COOKIE['Manager_Userid'];
	$Manager_Password=$_COOKIE['Manager_Password'];	
	if($Manager_Userid!=null&&$Manager_Password!=null)
	{
		$Link=mysql_connect_default();
		{
			$MyLogin=new Manager($Manager_Userid,$Manager_Password,$Link);
			$MyLogin->ToLogin();
			{
				if($MyLogin==false)
				{
					Extend::JsAlert('请您先登录!');
					Extend::JsLocation('login.php');					
				}
			}
			$MyLogin=null;
		}
		mysql_close($Link);
	}	
	else
	{
		Extend::JsAlert('请您先登录.');
		Extend::JsLocation('login.php');
		exit();
	}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>网站后台管理</title>
<link id="theme" rel="stylesheet" type="text/css" href="skins/theme/default/main.css" />
<script type="text/javascript" src="skins/jquery.js"></script>
<script type="text/javascript" src="skins/main.js"></script>
<script type="text/javascript" src="skins/menusData.js"></script>
<script language="javascript">
<!--	
	  window.onload=function()
	  {
			//load ui
			 $('#paniel').fadeIn(650);
			 /* $('#cssroundpaniel_top').fadeIn(650);
			 $('#cssroundpaniel_bottom').fadeIn(650);*/
			  
			//load menu
			loadmenu();
			
			//load iframe
			var fr=document.getElementById("frmright");
			var rh=Math.max(fr.contentWindow.document.documentElement.scrollHeight,fr.contentWindow.document.body.scrollHeight);
			if(rh>465) fr.height=rh;
			
			//load clock
			startTime();
			
			//load iframe monitor
			iframemonitor();
	  };
-->
</script>
</head>

<body>

<!--css 上圆角-->
<div id="cssroundpaniel_top" style="display:;" align="center"><b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b></div>
<!--css 上圆角-->     

<table width="950" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="paniel" style="display:none;"><!--整个面板己经隐藏，视图看不见任何东西-->
      <tr>
        <td height="40" align="center" valign="middle" title="三元色通用后台管理模板" id="logo">
        	<!--<a href="javascript:switchtheme();">网站管理系统</a>-->
            <a href="#">网站管理系统</a>
        </td>
        <td height="39" align="left" valign="middle" id="topmenupaniel">
            <table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                      <td height="25" align="left" valign="middle" id="topMenudataPaniel">          
                      		<!--主导航位置-->             
                      </td>
                  </tr>
            </table>
    	</td>
    </tr>
          <tr>
          <td width="170" align="center" valign="top" id="leftmenupaniel">
          		<!--子导航位置-->
          </td>
          <td width="780" align="left" valign="top" id="rightpaniel">
		  
				<table width="100%" border="0" cellspacing="0" cellpadding="0" id="rightmenu">
					  <tr>
							<td width="33%" height="23" align="center">现在时间:<span id="datepaniel"></span></td>
							<td width="67%" align="right">admin(管理员)&nbsp;|&nbsp;<a href="../index.html" target="_self">网站首页</a>&nbsp;|&nbsp;<a href="module/info/edit.aspx?id=2" target="frmright">管理首页</a>&nbsp;|&nbsp;<a href="module/_safe/quit.php">退出管理</a>&nbsp;</td>
					  </tr>
				</table>
                <!--显示窗口-->
                <iframe frameborder="0" id="frmright" name="frmright" scrolling="auto" src="module/news/list.php" width="100%" height="465" style="background-color:#fff;visibility:inherit;z-index:1;"></iframe>
          </td>
      </tr>
    <tr>
      <td height="28" colspan="2" align="center" valign="middle" id="bottompaniel">
	  		Copyright Right © 2008 Free.Com Powered By Free's Website System Version 1.0
	  </td>
    </tr>
</table>

<!--css 下圆角-->
<div id="cssroundpaniel_bottom" style="display:;" align="center"><b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b></div>
<!--css 下圆角-->

</body>
</html>